package cn.huiyunche.base.service.enums;

/**
 * 易宝费用支出方
 *
 * @author hdy [Tuffy]
 */
public enum YeepayFeeTypeEnum {

    SOURCE("SOURCE", "商户承担"),
    TARGET("TARGET", "用户承担");

    private final String value;
    private final String text;

    YeepayFeeTypeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static YeepayFeeTypeEnum getByValue(String value) {
        for (YeepayFeeTypeEnum temp : YeepayFeeTypeEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }
}
